package yy.robot.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import yy.robot.domain.User;

/**
 * Created by BaiJiFeiLong@gmail.com at 2018/5/11 9:01
 */
public interface UserRepository extends JpaRepository<User, Long> {

    User findOneByPhone(String phone);

    User findOneByUsername(String username);
}
